package com.st.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.st.entity.ScenicDetail;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Update;

public interface IScenicDetailMapper extends BaseMapper<ScenicDetail> {
    @Insert("insert into scenic_detail(name,site,attractions_id,business_hours) values (#{name},#{site},#{attractionsId},#{businessHours})")
    public int insertScenicDetail(ScenicDetail scenicDetail);

    @Update("update scenic_detail set name = #{name},site = #{site},business_hours = #{businessHours} where attractions_id = #{attractionsId} ")
    public int updateScenicDetail(ScenicDetail scenicDetail);
}
